﻿<%@ Page Language="C#"  EnableViewStateMac="false"   MasterPageFile="~/manage/public_page/master_page_manage.master" AutoEventWireup="true" CodeFile="notice_list.aspx.cs" Inherits="manage_notice_list" %>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_Right" runat="Server">
<td valign="top" bgcolor="#eef2fb"><table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">公告管理</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
	
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td valign="top">
		<span class="left_bt">公告列表</span><br>                     
                <form id="form1" runat="server">
                <asp:LinkButton ID="LinkButton3" runat="server" onclick="LinkButton3_Click">添加公告</asp:LinkButton>
                <div>
                    <asp:GridView ID="GridView1" runat="server" CellPadding="4" ForeColor="#333333"  AutoGenerateColumns="False"
                        GridLines="None" Width="100%" OnRowDeleting="GridView1_RowDeleting" OnRowCommand="GridView1_RowCommand" 
                         OnPageIndexChanging="GridView1_PageIndexChanging" 
                        OnPageIndexChanged="GridView1_PageIndexChanged"
                        AllowPaging="True"  PageSize="10">
                        <RowStyle BackColor="#FFFBD6" ForeColor="#333333" />
                        <Columns>
                            <asp:BoundField DataField="id" HeaderText="公告ID" InsertVisible="False" SortExpression="id" /> 
                            <asp:BoundField DataField="title" HeaderText="标题" InsertVisible="False" SortExpression="title" /> 
                            <asp:BoundField DataField="addtime" HeaderText="添加时间" InsertVisible="False" SortExpression="addtime" /> 
                            <asp:BoundField DataField="del_flg" HeaderText="显示状态" InsertVisible="False" SortExpression="del_flg" />                 
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                                        CommandName="Delete" Text="删除"  OnClientClick="return confirm('您确认删除该记录吗?');"></asp:LinkButton>
                                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                        CommandName="View" Text="查看" CommandArgument='<%#Eval("id") %>'   ></asp:LinkButton>
                                </ItemTemplate>                                
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </div>
                </form>
          <!--HTML部分-->
		</td>
      </tr>
      
    </table>
	
  </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="/images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="/images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table></td>
</asp:Content>
